<?php

use yii\helpers\Html;
use kartik\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel backend\modules\groups\models\query\UseringroupsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '用户组';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="useringroups-index">

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
        <?= Html::a('创建用户组', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'responsive'=>true,
        'hover'=>true,
        'pjax'=>true,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],
            'userGroupID',
            'user_id',
            'groupID',
             'managerGroup',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>

</div>
